package ihistoryApp.service;

import ihistoryApp.dal.mapper.RegisterRequestMapper;
import ihistoryApp.request.RegisterRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterService {
    @Autowired
    private RegisterRequestMapper registerRequestMapper;

    public RegisterRequest registerUser(RegisterRequest request) {
        registerRequestMapper.insert(request);
        return request;
    }

}
